<?php
/**
 * Created by PhpStorm.
 * User: fangwei
 * Date: 2019-08-21
 * Time: 18:17
 */

namespace App\Http\Controllers\Admin\View;


use App\Http\Controllers\Controller;
use App\Http\Repositories\Services\IProductSite;

class ProductSiteController extends Controller
{
    protected $productSiteService;

    public function __construct(
        IProductSite $productSiteService
    )
    {
        $this->productSiteService = $productSiteService;
    }

    public function index(){
        return view('admin.productSite.index');
    }

    public function store(){
        return view('admin.productSite.create');
    }

    public function update($id){
        $dao = $this->productSiteService->byId($id);
        return view('admin.productSite.edit', compact('dao'));
    }
}